Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRGetViewingLimits

You can use the QTVRGetViewingLimits function to get the current viewing limits of a QuickTime VR movie.

OSErr QTVRGetViewingLimits (
                     QTVRInstanceqtvr,
                     UInt16kind,
                     float*minValue,
                     float*maxValue);
qtvr
An instance of a QuickTime VR movie.
kind
The type of viewing limits to be returned. See "Constraint Types" for a description of the available types of viewing limits.
minValue
On entry, a pointer to a floating-point value. On exit, the minimum viewing limit of the specified type is copied into that value.
maxValue
On entry, a pointer to a floating-point value. On exit, the maximum viewing limit of the specified type is copied into that value.
function result
A result code.

DESCRIPTION

The QTVRGetViewingLimits function returns, in the floating-point values pointed to by the minValue and maxValue parameters, the current minimum and maximum values for angles whose type is specified by the kind parameter.

The maximum field of view of a panoramic node can be limited by the size of the back buffer and the current aspect ratio of the movie's graphics world.

The values returned by QTVRGetViewingLimits are unaffected by the current control settings.

QTVRGetViewingLimits returns information about the physical viewing limits of a panorama or object. To get information about the current viewing constraints, use QTVRGetConstraints (link) .


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |